package com.dd.entity;

// default package

import java.util.Date;

/**
 * DdOrder entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class DdOrder implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer type;
	private Integer userid;
	private Integer shopid;
	private Date orderdate = new Date();
	private Integer status;// -3客服取消,-2商家取消,-1用户取消,0下单待支付 1用户已支付商家未确认 2商家确认可以 3消费成功 
	private Float price;
	private String remark="";
	private String recall="";
	private Integer recallstatus=0;
	private Date paydate = null;
	private Date shopdate = null;
	private Date confirmdate = null;
	private Integer code;
	private Integer score;
	// Constructors

	
	public Float getPrice() {
		return price;
	}

	public String getRecall() {
		return recall;
	}

	public void setRecall(String recall) {
		this.recall = recall;
	}

	public Integer getRecallstatus() {
		return recallstatus;
	}

	public void setRecallstatus(Integer recallstatus) {
		this.recallstatus = recallstatus;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Date getShopdate() {
		return shopdate;
	}

	public void setShopdate(Date shopdate) {
		this.shopdate = shopdate;
	}

	public Date getConfirmdate() {
		return confirmdate;
	}

	public void setConfirmdate(Date confirmdate) {
		this.confirmdate = confirmdate;
	}

	public Date getPaydate() {
		return paydate;
	}

	public void setPaydate(Date paydate) {
		this.paydate = paydate;
	}

	public String getRemark() {
		
		return remark==null?"":remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	/** default constructor */
	public DdOrder() {
	}

	/** full constructor */
	public DdOrder(Integer type, Integer userid, Integer shopid,
			Date orderdate, Integer status) {
		this.type = type;
		this.userid = userid;
		this.shopid = shopid;
		this.orderdate = orderdate;
		this.status = status;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	public Integer getShopid() {
		return this.shopid;
	}

	public void setShopid(Integer shopid) {
		this.shopid = shopid;
	}

	public Date getOrderdate() {
		return this.orderdate;
	}

	public void setOrderdate(Date orderdate) {
		this.orderdate = orderdate;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

}